package com.tangcco.lockwell.service;

import com.tangcco.lockwell.domain.WrongQuestion;

import java.util.List;

public interface WrongQuestionService {
    //根据user_id查询错题
    List<WrongQuestion> selectWrongQuestionsByUserId(int userId,Integer subjectId);

    /**
     * 按条件查询错题
     * @param wrongQuestion
     * @return
     */
    List<WrongQuestion> selectList(WrongQuestion wrongQuestion);

    /**
     * 添加
     * @param wrongQuestion
     * @return
     */
    int insertSelective(WrongQuestion wrongQuestion);

    /**
     * 编辑
     * @param wrongQuestion
     * @return
     */
    int updateByPrimaryKeySelective(WrongQuestion wrongQuestion);
}
